package org.kmfdm.horrorscope.tapestry.pages;

import org.apache.tapestry5.annotations.SessionState;

import org.kmfdm.horrorscope.metamodel.User;





public class LogOut {
	@SessionState 
	private User user;
	private boolean userExists;
	
	
	
	public User getUser() {
		return user;
	}



	public void setUser(User user) {
		this.user = user;
	}



	public boolean isUserExists() {
		return userExists;
	}



	public void setUserExists(boolean userExists) {
		this.userExists = userExists;
	}



	public Object onActivate(){
		if(userExists){
			user=null;
			return null;
		}
		return null;
	}
	
	

}
